package com.rui.study.commons.study.entity;

import com.rui.study.commons.util.JsonUtil;
import com.sun.istack.internal.NotNull;
import lombok.Getter;
import lombok.Setter;

import java.util.Collection;

@Getter
@Setter
public class Company {

    /**
     * 股东
     */
    @NotNull
    private Collection<String> stockholders;

    /**
     * 总经理
     */
    @NotNull
    private Manager manager;

    /**
     * 部门
     */
    @NotNull
    private Department[] department;



    @Override
    public String toString() {
        return JsonUtil.encode(this);
    }
}
